const { defineConfig } = require("@vue/cli-service");

module.exports = defineConfig({
  transpileDependencies: true,

  publicPath: "./",
  outputDir: "dist",
  assetsDir: "assets",
  filenameHashing: true,
  runtimeCompiler: false,
  productionSourceMap: true,
  devServer: {
    proxy: {
      "/": {
        ws: false, // 这里把ws代理给关闭
        target: "http://localhost:8088",
        changeOrigin: true, // 允许跨域
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
});
